<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('box_number', function (Blueprint $table) {
            $table->id()->unique()->comment('自增ID');
$table->string('code', 100)->unique()->comment('箱号');
$table->string('days', 10)->comment('添加日期');
$table->tinyInteger('active')->default(1)->comment('是否激活：0否，1是');
$table->creatorId();
$table->createdAt();
$table->updatedAt();
$table->deletedAt();

$table->engine='InnoDB';
$table->comment('箱号资料');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('box_number');
    }
};
